{template nheader.html}
<div class="page-bar">
	<ul class="page-breadcrumb mylink">
		{$menu.link}

	</ul>
	<ul class="page-breadcrumb myname">
		{$menu.name}
	</ul>
	<div class="page-toolbar">
		<div class="btn-group pull-right">
			<button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
				<i class="fa fa-angle-down"></i>
			</button>
			<ul class="dropdown-menu pull-right" role="menu">
				{loop $menu.quick $t}
				<li>
					<a href="{$t.url}">{$t.icon} {$t.name}</a>
				</li>
				{/loop}
				<li class="divider"> </li>
				<li>
					<a href="javascript:window.location.reload();">
						<i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
				</li>
			</ul>
		</div>
	</div>
</div>
<h3 class="page-title">
	<small>{fc_lang('模块表单是对模块内容的一种扩展，如内容评论、内容报名、内容留言、内容反馈等等')}</small>
</h3>
<div class="portlet mylistbody">
	<div class="portlet-body">
		<div class="table-scrollable">

			<table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">

			<thead>
			<tr>
				<th width="40" align="center">{fc_lang('可用')}</th>
				<th width="100" align="left">{fc_lang('名称')}</th>
				<th width="80" align="left">{fc_lang('表名称')}</th>
				<th align="left" class="dr_option">{fc_lang('操作')}</th>
			</tr>
			</thead>
			<tbody>
			{loop $list $t}
			<tr>
				<td align="center">
					{if $this->ci->is_auth('admin/mform/edit')}
					<a href="javascript:;" onClick="return dr_dialog_set('{php echo $t['disabled'] ? fc_lang('<font color=blue><b>你确定要启用它？启用后将正常使用</b></font>') : fc_lang('<font color=red><b>你确定要禁用它？禁用后将无法使用</b></font>');}','{dr_url('mform/disabled', array('sid' => $sid, 'mid' => $mid, 'id' => $t.id))}');">
						<img src="{THEME_PATH}admin/images/{php echo $t.disabled ? 0 : 1}.gif">
					</a>
					{else}
					<img src="{THEME_PATH}admin/images/{php echo $t.disabled ? 0 : 1}.gif">
					{/if}
				</td>
				<td align="left">
				{if $this->ci->is_auth('admin/mform/edit')}
				<a href="{dr_url('mform/edit', array('dir' => $dir, 'id' => $t.id))}">{$t.name}</a>
				{else}
				{$t.name}
				{/if}
				</td>
				<td align="left">{$t.table}</td>
				<td align="left" class="dr_option">
				{if $this->ci->is_auth('admin/mform/listc')}<a class="alist" href="{dr_url($dir.'/form_'.$t.table.'/index')}"> <i class="fa fa-navicon"></i> {fc_lang('内容维护')}</a>{/if}
				{if $this->ci->is_auth('admin/field/index')}<a class="aadd" href="{dr_url('admin/field/index', array('rname' => 'mform-'.$dir, 'rid' => $t.id))}"> <i class="fa fa-plus-square"></i> {fc_lang('字段')}</a>{/if}
				{if $this->ci->is_auth('admin/mform/edit')}<a class="aedit" href="{dr_url('mform/edit', array('dir' => $dir, 'id' => $t.id))}"> <i class="fa fa-edit"></i> {fc_lang('修改')}</a>{/if}
				{if $this->ci->is_auth('admin/mform/del')}<a class="adel" href="javascript:;" onClick="return dr_confirm_url('{fc_lang('您确定要这样操作吗？')}','{dr_url('mform/del', array('dir' => $dir, 'id' => $t.id))}');"> <i class="fa fa-trash"></i> {fc_lang('删除')}</a>{/if}
				</td>
			</tr>
			{/loop}
			</tbody>
			</table>
		</div>
	</div>
</div>

{template nfooter.html}